import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const XToken = 'XToken'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
export function getXToken() {
  return Cookies.get(XToken)
}

export function setXToken(xtoken) {
  return Cookies.set(XToken, xtoken)
}
export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function removeXToken(xtoken) {
  return Cookies.remove(XToken)
}
